package com.sunqianhu.design_patterns_23.structural.facade;

public class HomeTheaterFacade {
    private DVDPlayer dvdPlayer;
    private Projector projector;
    private SoundSystem soundSystem;
    public HomeTheaterFacade(DVDPlayer dvdPlayer, Projector projector, SoundSystem soundSystem) {
        this.dvdPlayer = dvdPlayer;
        this.projector = projector;
        this.soundSystem = soundSystem;
    }
    public void watchMovie() {
        System.out.println("Get ready to watch a movie...");
        dvdPlayer.on();
        projector.on();
        soundSystem.on();
    }
}
